package org.interaction3d.assembly.convert.collada;

/**
 *
 * @author Michael Nischt
 */

final class PrimitiveGroup
{
    public final int[][][] primitives; //[INPUT][PRIMITVE_INDEX][ELEMENT_INDEX];
    public final Input[] inputs;
    public final String material;
    public final String type;

    public PrimitiveGroup(int[][][] primitives, Input[] inputs, String material, String type)
    {
        if(type == null || material == null)
        {
            throw new NullPointerException();
        }

        int numPrimitives = primitives[0].length;
        for(int i=1; i<primitives.length; i++)
        {
            if(primitives[i].length != numPrimitives)
            {
                throw new IllegalArgumentException();
            }
        }



        this.primitives = primitives;
        this.inputs = inputs;
        this.material = material;
        this.type = type;
    }
}